import myaxios from "../MyAxios"
import URLENV from '@/http/BaseUrl';
const BMDURL = URLENV.BMDURL;
const usersApi = {
  /** 
   * 获取图片验证码
   */
  queryImgCode(params) {
    let url = BMDURL + '/users/getImgCode'
    return myaxios.get(url, params);
  },
  /** 
   * 获取手机验证码
   */
  queryPhoneCode(params) {
    let url = BMDURL + '/users/getPhoneCode'
    return myaxios.get(url, params);
  },

  /** 
  * 通过手机验证码进行登录
  */
  loginByCode(params) {
    let url = BMDURL + '/users/loginByCode'
    return myaxios.post(url, params);
  },
  /** 
 * 通过账号密码登录
 */
  loginByAccount(params) {
    let url = BMDURL + '/users/loginByAccount'
    return myaxios.post(url, params);
  },


}
export default usersApi;